<script setup lang="ts">
import { useRouter,useRoute } from "vue-router"
import { h ,getCurrentInstance} from "vue";
import { useI18n } from "vue-i18n";
const { t } = useI18n()
const router = useRouter()
const route = useRoute()
console.log(route.params)
const { proxy }:any = getCurrentInstance()
proxy.$message({
    message:h('p',null,[
        h('span',null,'Message can be '),
        h('i',{style: 'color:teal'},'VNcode'),
    ]),
})
const value1 = ''
</script>

<template>
    {{ t('message.home') }}
    首页111
    <button @click="() => router.push({path: '/mine', query: {id:1}})">跳转到个人中心</button>
    <el-date-picker
        v-model="value1"
        type="date"
        placeholder="Pick a day"
        :size="size"
      />
</template>

<style scoped>

</style>
